﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.ComponentModel;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Input;
using System.Windows.Threading;

namespace WPF.CustomControl
{
    public delegate void CustomMouseLeftButtonDownHandler(object sender, MouseButtonEventArgs e);
    public delegate void CustomMouseEventHandler(object sender, MouseEventArgs e);

    /// <summary>
    /// 自定义关闭之前事件。
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="canceled"></param>
    public delegate void CustomClosingEventHandler(object sender, ref bool canceled);

    /// <summary>
    /// 自定义关闭之后触发的事件。
    /// </summary>
    /// <param name="sender"></param>
    public delegate void CustomClosedEventHandler(object sender);

    /// <summary>
    /// 触发关闭动作，主要是关闭控件使用。
    /// </summary>
    /// <param name="sender"></param>
    public delegate void CustomCloseCommandHandler(object sender);

}
